package com.qys.livesMall.quartz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.system.source.domain.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 定时任务调度日志表 sys_job_log
 *
 * @author wanglei
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SysJobLog extends BaseQuery {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long jobLogId;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务组名
     */
    private String jobGroup;

    /**
     * 调用目标字符串
     */
    private String invokeTarget;

    /**
     * 日志信息
     */
    private String jobMessage;

    /**
     * 执行状态（0正常 1失败）
     */
    private String status;

    /**
     * 异常信息
     */
    private String exceptionInfo;

    /**
     * 开始时间
     */
    private Date startTimes;

    /**
     * 停止时间
     */
    private Date stopTimes;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
